﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_Domain_core.Events;

namespace xiaodingmarket_Infra_Data.Repository.EventStore
{
    public interface IEventStoreRepository : IDisposable
    {
        void Store(StoredEvent theEvent);

        //StoredEvent GetLastEvent<TKey>(TKey eventId) where TKey : IEquatable<TKey>;

        //IEnumerable<StoredEvent> GetEvents<TKey>(TKey eventId, int afterVersion = 0) where TKey : IEquatable<TKey>;
        IList<StoredEvent> All(Guid aggregateId);
    }
}
